import re
s = ["alpe","ale", "ape", "a2e", "a!e", "a_e", "aae", "a\e", "ae", "a\re"]
res1 = re.findall("a.e", str(s))
print("res1=",res1)
res2 = re.findall("a[0-9a-z]e", str(s))
print("res2=",res2)
res3 = re.findall("a[lp]e", str(s))
print("res3=",res3)
# 只要不是数字就提取
res4 = re.findall("a[^0-9]e", str(s))
print("res4=",res4)
# 只要不是数字或者小写字母就提取
res5 = re.findall("a[^0-9a-z]e",str(s))
print("res5=",res5)